export default function tableColConfig() {
  return [
    {
      prop: 'number',
      label: '工单编号',
      fixed: 'left',
      colConfig: {
        sortable: false,
        minWidth: 200,
        fixed: 'left'
      }
    },
    {
      prop: 'workorderProcessStatusLabel',
      label: '工单进度',
      filterAble: true,
      noChecked: true,
      searchConfig: {name: 'workorderProcessStatusId', type: 'select', selectList: this.processStatus, multiple: true},
      colConfig: {minWidth: 100, sortable: false, comp: 'workSchedule', fixed: 'left'}
    },
    {
      prop: 'statusLabel',
      label: '工单状态',
      filterAble: true,
      noChecked: true,
      searchConfig: {name: 'statusId', type: 'select', dict: 'workorderStatus', multiple: true},
      colConfig: {minWidth: 95, sortable: false, comp: 'workState', fixed: 'left'}
    },
    {prop: 'materialNumber', label: '物料编码', colConfig: {sortable: false, minWidth: 115}},
    {prop: 'materialName', label: '物料名称', colConfig: {sortable: false, align: 'left', minWidth: 120}},
    {
      prop: 'priorityTypeLabel',
      label: '优先级',
      filterAble: true,
      searchConfig: {name: 'priorityId', type: 'select', dict: 'priorityType'},
      colConfig: {minWidth: 120, comp: 'priority', sortable: false}
    },
    {prop: 'drawingNumber', label: '图号', colConfig: {sortable: false, minWidth: 100}},
    {prop: 'taskNumber', label: '任务号', colConfig: {sortable: false, minWidth: 150}},
    {prop: 'planQuantity', label: '数量', noSearch: true, colConfig: {sortable: false, minWidth: 85}},
    {prop: 'spiltQuantity', label: '已拆分数量', noSearch: true, colConfig: {sortable: false, minWidth: 115}},
    {
      prop: 'sourceLabel',
      label: '工单来源',
      searchConfig: {name: 'sourceId', type: 'select', dict: 'workorderSource'},
      colConfig: {sortable: false, minWidth: 95}
    },
    {
      prop: 'workorderTypeLabel',
      label: '工单类型',
      searchConfig: {name: 'typeId', type: 'select', dict: 'workorderType'},
      colConfig: {sortable: false, minWidth: 95}
    },
    {
      prop: 'taskTypeLabel',
      label: '任务类别',
      searchConfig: {name: 'taskTypeId', type: 'select', dict: 'taskType'},
      colConfig: {sortable: false, minWidth: 110}
    },
    {prop: 'estimateEffort', label: '总工时', noSearch: true, colConfig: {fixed: 'right', sortable: false, minWidth: 85}},
    {
      prop: 'expendTime',
      label: '实际工时',
      noSearch: true,
      colConfig: {
        sortable: false,
        fixed: 'right',
        minWidth: 100,
        className: 'fontColor',
        resizable: false
      }
    },
  ]
}
